import { Entity, PrimaryGeneratedColumn, } from "typeorm";
import { Code, CreateDate, DateTime, Digdit, Int, Money, UpdateDate } from "../utils";
/**
 * 加入直播间的设备记录
 */
@Entity({
    name: 'ks_live_room_log'
})
export class KsLiveRoomLog {
    @PrimaryGeneratedColumn()
    id: number;

    @Code({ comment: `手机ID` })
    uuid: string;

    @Int(11, { comment: '房间id' })
    room_id: number;

    @Digdit({ default: 0, comment: `中奖金额` })
    count: number;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;

    @Code({ default: '0' })
    status: string;

    @DateTime({ nullable: true })
    open_time: Date;

    @Code({ default: '' })
    user_id: string;

    @Money({ default: 0 })
    money_v: number;

    @Int(11, { default: 0 })
    red_id: number;

    @Code({ default: '' })
    pkg: string;
}
